import {
    Book,
    NotebookAndPen,
    PersonalPrivacy,
} from "@icon-park/vue-next";
import {
    BookOutlined,
    CodeOutlined,
    DotChartOutlined,
    FieldTimeOutlined,
    FormOutlined,
    SnippetsOutlined,
    HomeOutlined,
    LaptopOutlined,
    HighlightOutlined
} from "@ant-design/icons-vue"

export function useMenu():IMenu[]{
    return [
        {
            label: '学习中心',
            key: 'learn',
            href: '/learn',
            icon: Book,
            children: [
                {
                    label: '课程学习',
                    key: 'course',
                    href: '/curriculum',
                    icon: BookOutlined
                },
                {
                    label: '代码社区',
                    key: 'code',
                    href: '/forum',
                    icon: CodeOutlined
                },
                {
                    label: '模型实验',
                    key: 'model',
                    href: '/model',
                    icon: DotChartOutlined
                },
            ]
        },
        {
            label: '笔记管理',
            key: 'note',
            href: '/note',
            icon: NotebookAndPen,
            children: [
                {
                    label: '笔记首页',
                    key: 'NoteAbout',
                    href: '/note/about',
                    icon: FieldTimeOutlined,
                },
                {
                    label: '个人笔记',
                    key: 'NotePersonal',
                    href: '/note/personal',
                    icon: FormOutlined,
                },
                {
                    label: '课程笔记',
                    key: 'NoteCourse',
                    href: '/note/course',
                    icon: SnippetsOutlined,
                }
            ]
        },
        {
            label: '个人中心',
            key: 'person',
            href: '/personal',
            icon: PersonalPrivacy,
            children: [
                {
                    label: '修改信息',
                    key: 'personal-update',
                    href: '/personal/update',
                    icon: HomeOutlined
                },
                {
                    label: 'Linter首页',
                    key: 'home',
                    href: '/about',
                    icon: HomeOutlined
                },
                {
                    label: '学习中心',
                    key: 'learn',
                    href: '/learn',
                    icon: LaptopOutlined
                },
                {
                    label: '个人笔记',
                    key: 'note',
                    href: '/note',
                    icon: HighlightOutlined,
                }
            ]
        }

    ]
}